package com.assignwork.vo.pc;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName PcShipRealWritingPageVo
 * @Description PC端船舶写实记录分页
 * @Author salim
 * @Date 2024/1/1 22:42
 */
@Data
public class PcShipRealWritingPageVo {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "船舶预报ID 船舶预报")
    private Long shipId;
    @ApiModelProperty(name = "船名 船舶预报")
    private String shipNameZh;
    @ApiModelProperty(name = "进出口 船舶预报")
    private String impExp;

    @ApiModelProperty(name = "进出口 船舶预报")
    private String impExpName;

    @ApiModelProperty(name = "航次 船舶预报")
    private String voyageNo;

    @ApiModelProperty(name = "泊位 船舶预报")
    private String berth;

    @ApiModelProperty(name = "泊位 船舶预报")
    private String berthName;

    @ApiModelProperty(name = "当前船舶状态 船舶预报")
    private String forecastStatus ;

    @ApiModelProperty(name = "当前船舶状态 船舶预报")
    private String forecastStatusName ;

    //ship_archive表
    @ApiModelProperty(name = "imo 船舶档案")
    private String imo;

    @ApiModelProperty(name = "内外贸 船舶预报")
    private String tradeType;

    @ApiModelProperty(name = "内外贸 船舶预报")
    private String tradeTypeName;

    @ApiModelProperty(name = "货名 船舶预报")
    private String cargoType;

    @ApiModelProperty(name = "货名 船舶预报")
    private String cargoTypeName;

    @ApiModelProperty(name = "吨数 船舶预报")
    private BigDecimal ton;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @ApiModelProperty(name = "抵港时间 船舶预报")
    private Date rta ;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @ApiModelProperty(name = "靠泊时间 船舶预报")
    private Date rtb ;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    @ApiModelProperty(name = "离港时间 船舶预报")
    private Date rtd ;
}
